package Model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class ElderInfo extends PageBean{
    private Integer id;
    private String serv_org;
    private String js_id;
    private String name;
    private String gender;
    private String person_level;
    private String sbcard_id;
    private String ybid;
    private String age;
    private String id_number;
    private String person_catagory;
    private String phone_number;
    private String contact_people;
    private String care_assistant;
    private String fwaddress;
    private String fwaddresscj;
    private String fwjz;
    private String ser_situation;
    private String assess_type;
    private String last_serv_org;
    private String result;
    private String device_id;
    private String keyword;
    private String device_lr;



    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date start_change_date;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date daiyu_start_date;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date daiyu_due_date;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date first_plan_date;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date first_serve_date;
    @DateTimeFormat(pattern = "yyyy-MM-dd\'T\'HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd\'T\'HH:mm:ss", timezone = "GMT+8")
    private Date history_change_time;

    public Integer getId() { return id; }

    public void setId(Integer id) { this.id = id; }

    public String getServ_org() { return serv_org; }

    public void setServ_org(String serv_org) { this.serv_org = serv_org; }

    public String getJs_id() { return js_id; }

    public void setJs_id(String js_id) { this.js_id = js_id; }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPerson_level() {
        return person_level;
    }

    public void setPerson_level(String person_level) {
        this.person_level = person_level;
    }

    public String getSbcard_id() {
        return sbcard_id;
    }

    public void setSbcard_id(String sbcard_id) {
        this.sbcard_id = sbcard_id;
    }

    public String getYbid() {
        return ybid;
    }

    public void setYbid(String ybid) {
        this.ybid = ybid;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getId_number() {
        return id_number;
    }

    public void setId_number(String id_number) {
        this.id_number = id_number;
    }

    public String getPerson_catagory() {
        return person_catagory;
    }

    public void setPerson_catagory(String person_catagory) {
        this.person_catagory = person_catagory;
    }

    public String getPhone_number() {
        return phone_number;
    }

    public void setPhone_number(String phone_number) {
        this.phone_number = phone_number;
    }

    public String getCare_assistant() {
        return care_assistant;
    }

    public void setCare_assistant(String care_assistant) {
        this.care_assistant = care_assistant;
    }

    public String getFwaddress() {
        return fwaddress;
    }

    public void setFwaddress(String fwaddress) {
        this.fwaddress = fwaddress;
    }

    public String getFwjz() {
        return fwjz;
    }

    public void setFwjz(String fwjz) {
        this.fwjz = fwjz;
    }

    public String getContact_people() {
        return contact_people;
    }

    public void setContact_people(String contact_people) {
        this.contact_people = contact_people;
    }

    public String getFwaddresscj() { return fwaddresscj; }

    public void setFwaddresscj(String fwaddresscj) { this.fwaddresscj = fwaddresscj; }

    public String getSer_situation() { return ser_situation; }

    public void setSer_situation(String ser_situation) { this.ser_situation = ser_situation; }

    public String getAssess_type() {
        return assess_type;
    }

    public void setAssess_type(String assess_type) {
        this.assess_type = assess_type;
    }

    public Date getStart_change_date() {
        return start_change_date;
    }

    public void setStart_change_date(Date start_change_date) {
        this.start_change_date = start_change_date;
    }

    public Date getDaiyu_start_date() {
        return daiyu_start_date;
    }

    public void setDaiyu_start_date(Date daiyu_start_date) {
        this.daiyu_start_date = daiyu_start_date;
    }

    public Date getDaiyu_due_date() {
        return daiyu_due_date;
    }

    public void setDaiyu_due_date(Date daiyu_due_date) {
        this.daiyu_due_date = daiyu_due_date;
    }

    public String getLast_serv_org() { return last_serv_org; }

    public void setLast_serv_org(String last_serv_org) { this.last_serv_org = last_serv_org; }

    public Date getHistory_change_time() {
        return history_change_time;
    }

    public void setHistory_change_time(Date history_change_time) {
        this.history_change_time = history_change_time;
    }

    public Date getFirst_plan_date() {
        return first_plan_date;
    }

    public void setFirst_plan_date(Date first_plan_date) {
        this.first_plan_date = first_plan_date;
    }

    public Date getFirst_serve_date() {
        return first_serve_date;
    }

    public void setFirst_serve_date(Date first_serve_date) {
        this.first_serve_date = first_serve_date;
    }

    public String getDevice_lr() {
        return device_lr;
    }

    public void setDevice_lr(String device_lr) {
        this.device_lr = device_lr;
    }

    @Override
    public String toString() {
        return "Elder{" +
                "id="+id+'\''+
                ", serv_org=" + serv_org + '\'' +
                ", js_id='" + js_id +'\''+
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", person_level='" + person_level + '\'' +
                ", sbcard_id='" + sbcard_id + '\'' +
                ", ybid=" + ybid +
                ", device_lr=" + device_lr +
                ", age=" + age +
                ", id_number='" + id_number + '\'' +
                ", person_catagory='" + person_catagory + '\'' +
                ", phone_number='" + phone_number + '\'' +
                ", contact_people='" + contact_people + '\'' +
                ", care_assistant='" + care_assistant + '\'' +
                ", fwaddress='" + fwaddress + '\'' +
                ", fwjz='" + fwjz + '\'' +
                ", hlplanfdate=" + daiyu_start_date +'\''+
                ", fservdate=" + daiyu_due_date +'\''+
                ", ser_situation='" + ser_situation+'\''+
                ", zhuanchu='"+assess_type+'\''+
                '}';
    }
}
